package io.renren.modules.report.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.report.dao.PackageTableDao;
import io.renren.modules.report.entity.PackageTableEntity;
import io.renren.modules.report.service.PackageTableService;


@Service("packageTableService")
public class PackageTableServiceImpl extends ServiceImpl<PackageTableDao, PackageTableEntity> implements PackageTableService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PackageTableEntity> page = this.page(
                new Query<PackageTableEntity>().getPage(params),
                new QueryWrapper<PackageTableEntity>()
        );

        return new PageUtils(page);
    }

}